\ProvidesPackage{styles/plaintheorems}

% Plain ams* theorems

\usepackage{amsmath} % Improved mathematics
\usepackage{amsfonts} % Mathematical fonts
\usepackage{amssymb} % AMS symbols and environments
\usepackage{amsthm} % Mathematical environments
\usepackage{thmtools}
%\usepackage{unicode-math} % Use unicode math font, not TeX
%\usepackage{mathtools} % More math symbols and environments
%\setmathfont{Asana-Math.otf}

% Edit the following to create a new style (NOTE: it is much simpler using thmtools!)
%\newtheoremstyle{theorem}% name of the style to be used
	%{spaceabove}% measure of space to leave above the theorem. E.g.: 3pt
	%{spacebelow}% measure of space to leave below the theorem. E.g.: 3pt
	%{bodyfont}% name of font to use in the body of the theorem
	%{indent}% measure of space to indent
	%{headfont}% name of head font
	%{headpunctuation}% punctuation between head and body
	%{headspace}% space after theorem head; " " = normal interword space
	%{headspec}% Manually specify head

% Theorem styles
\declaretheoremstyle[
	%spaceabove=.5\thm@preskip,
	%spacebelow=.5\thm@postskip,
	%headfont=\normalfont\bfseries,%\scshape,
	%notefont=\normalfont, notebraces={ (}{)},
	bodyfont=\normalfont\itshape,
	%headformat={\NAME\space\NUMBER\space\NOTE},
	headpunct={},
	%postheadspace={.5em plus .1em minus .1em},
	%prefoothook={\hfill\qedsymbol}
]{kaoplain}

\declaretheoremstyle[
	%spaceabove=.5\thm@preskip,
	%spacebelow=.5\thm@postskip,
	%headfont=\normalfont\bfseries,%\scshape,
	%notefont=\normalfont, notebraces={ (}{)},
	bodyfont=\normalfont\itshape,
	%headformat={\NAME\space\NUMBER\space\NOTE},
	headpunct={},
	%postheadspace={.5em plus .1em minus .1em},
	%prefoothook={\hfill\qedsymbol}
]{kaodefinition}

\declaretheoremstyle[
	%spaceabove=.5\thm@preskip,
	%spacebelow=.5\thm@postskip,
	%headfont=\normalfont\bfseries,
	%notefont=\normalfont, notebraces={ (}{)},
	%bodyfont=\normalfont,
	%headformat={\footnotesize$\triangleright$\space\normalsize\NAME\space\NUMBER\space\NOTE},
	%headformat={\NAME\space\NUMBER\space\NOTE},
	headpunct={},
	%postheadspace={.5em plus .1em minus .1em},
	%refname={theorem,theorems},
	%Refname={Theorem,Theorems},
]{kaoremark}

\declaretheoremstyle[
	%spaceabove=.5\thm@preskip,
	%spacebelow=.5\thm@postskip,
	%headfont=\normalfont\bfseries,
	%notefont=\normalfont, notebraces={ (}{)},
	%bodyfont=\normalfont,
	%headformat={\NAME\space\NUMBER\space\NOTE},
	headpunct={},
	%postheadspace={.5em plus .1em minus .1em},
	%prefoothook={\hfill\qedsymbol}
	%refname={theorem,theorems},
	%Refname={Theorem,Theorems},
]{kaoexample}

\theoremstyle{kaoplain}

\declaretheorem[
	name=定理,
	refname={theorem,theorems},
	Refname={Theorem,Theorems},
	numberwithin=section,
]{theorem}

\declaretheorem[
	name=命题,
	refname={proposition,propositions},
	Refname={Proposition,Propositions},
	sibling=theorem,
]{proposition}

\declaretheorem[
	name=引理,
	refname={lemma,lemmas},
	Refname={Lemma,Lemmas},
	sibling=theorem,
]{lemma}

\declaretheorem[
	name=推论,
	refname={corollary,corollaries},
	Refname={Corollary,Corollaries},
	sibling=theorem,
]{corollary}

\theoremstyle{kaodefinition}
\declaretheorem[
	name=定义,
	refname={definition,definitions},
	Refname={Definition,Definitions},
	numberwithin=section,
]{definition}

\theoremstyle{kaoremark}
\declaretheorem[
	name=备注,
	refname={remark,remarks},
	Refname={Remark,Remarks},
	numberwithin=section,
]{remark}

\theoremstyle{kaoexample}
\declaretheorem[
	name=例,
	refname={example,examples},
	Refname={Example,Examples},
	numberwithin=section,
]{example}

%\renewcommand{\thetheorem}{\arabic{chapter}.\arabic{section}.\arabic{theorem}}
%\renewcommand{\thetheorem}{\arabic{subsection}.\arabic{theorem}}
%\renewcommand{\qedsymbol}{$\blacksquare$}
